package com.bluesimon.wbf.usercenter;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.bluesimon.wbf.usercenter.entity.User;

/**
 * Created by Zz on 2018/8/27.
 */
public interface UserRepository extends JpaRepository<User, String>, JpaSpecificationExecutor<User> {

    public List<User> findByUserNameAndPassword(String loginName, String password);

    public List<User> findByUserName(String loginName);
    
    public List<User> findByBizId(Integer bizId);

}
